package com.larissa.android.note.database;

import androidx.lifecycle.LiveData;
import androidx.room.Dao;
import androidx.room.Insert;
import androidx.room.Query;
import androidx.room.Update;

import com.larissa.android.note.Note;

import java.util.List;

@Dao
public interface NoteDao {
    @Query("SELECT * FROM Note")
    LiveData<List<Note>>getAllNotes();

    @Insert
    void addNote(Note note);

    @Update
    void updateNote(Note note);

}
